<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
    <title>IMqttServer </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="dc.created" content="2020-03-25">
    <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
    <link rel="stylesheet" type="text/css" href="../../../../../dokka-javadoc-stylesheet.css" title="Style">
    <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
    <script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script>
    <script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>

    <script type="text/javascript" src="../../../../../search.js"></script>
    <script async type="text/javascript" src="../../../../../module-search-index.js"></script>
    <script async type="text/javascript" src="../../../../../package-search-index.js"></script>
    <script async type="text/javascript" src="../../../../../type-search-index.js"></script>
    <script async type="text/javascript" src="../../../../../member-search-index.js"></script>
    <script async type="text/javascript" src="../../../../../tag-search-index.js"></script>
</head><body>
<script type="text/javascript">
var pathtoroot = "../../../../../";
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript><header role="banner">
    <nav role="navigation">
        <div class="fixedNav">
            <!-- ========= START OF TOP NAVBAR ======= -->
            <div class="topNav"><a id="navbar.top">
                <!--   -->
            </a>
                <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a>
                </div>
                <a id="navbar.top.firstrow">
                    <!--   -->
                </a>
                <ul class="navList" title="Navigation">
    <li><a href="../../../../../index.html">Overview</a></li>
    
    <li><a href="package-summary.html">Package</a></li>
    
    <li>Class</li>
    
    <li><a href="package-tree.html">Tree</a></li>
    
    <li><a href="../../../../../deprecated.html">Deprecated</a></li>
    <li><a href="../../../../../index-files/index-1.html">Index</a></li>
    <li>Help</li>
</ul></div>
            <div class="subNav">
<ul class="navList" id="allclasses_navbar_top" style="display: block;">
    <li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>

<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" class="ui-autocomplete-input" autocomplete="off" placeholder="Search">
<input type="reset" id="reset" value="reset">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.top">
<!--   -->
</a></div><!-- ========= END OF TOP NAVBAR ========= -->
        </div>
        <div class="navPadding">&nbsp;</div>
        <script type="text/javascript"><!--
        $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
        //-->
        </script>
    </nav>
</header>

<main role="main">
    <div class="header">
        <div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html"></a></div>
        <h2 title="Interface IMqttServer" class="title">Interface IMqttServer</h2>
    </div>
    <div class="contentContainer">
        <!-- <ul class="inheritance">
            <li>java.lang.Object</li>
            <li>
                <ul class="inheritance">
                    <li>adaptation.Adaptation</li>
                </ul>
            </li>
        </ul> TODO inheritance tree -->
        <div class="description">
            <ul class="blockList">
                <li class="blockList">
                    
                    <hr>
                    <pre class="wrap-overflow">

public interface <span class="typeNameLabel"><a href=IMqttServer.html>IMqttServer</a></span>

                    </pre>
                    <div class="block"><p>Enables an android application to communicate with an MQTT server.</p></div>
                </li>
            </ul>
        </div>
        <div class="summary">
            <ul class="blockList">
                <li class="blockList">
                <!-- ======== NESTED CLASS SUMMARY ======== -->
                    
                    <!-- =========== FIELD SUMMARY =========== -->
                    
                    <!-- ======== CONSTRUCTOR SUMMARY ======== -->
                    
                    <!-- =========== ENUM CONSTANT SUMMARY =========== -->
                    
                    <!-- ========== METHOD SUMMARY =========== -->
                    
                    <section role="region">
                        <ul class="blockList">
                            <li class="blockList"><a id="method.summary">
                                <!--   -->
                            </a>
                                <h3>Method Summary</h3>
                                <div class="memberSummary">
                                    <div role="tablist" aria-orientation="horizontal">
                                        <button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button>
                                        <!-- TODO: Instance and Concrete Methods #1118 -->
                                    </div>
                                    <div id="memberSummary_tabpanel" role="tabpanel">
                                    <table aria-labelledby="t0">
                                        <tr>
                                            <th class="colFirst" scope="col">Modifier and Type</th>
                                            <th class="colSecond" scope="col">Method</th>
                                            <th class="colLast" scope="col">Description</th>
                                        </tr>
                                        
                                        <tr id="i0" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#subscribe(String,IResultCallback)>subscribe</a>(String topic, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Subscribe to a topic.</td>
                                        </tr>
                                        
                                        <tr id="i1" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#subscribe(String,int,IResultCallback)>subscribe</a>(String topic, int qos, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Subscribe to a topic with qos.</td>
                                        </tr>
                                        
                                        <tr id="i2" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#subscribe(Array,IResultCallback)>subscribe</a>(Array&lt;String&gt; topicIds, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Subscribe topics to MQTT server.</td>
                                        </tr>
                                        
                                        <tr id="i3" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#subscribe(Array,Array,IResultCallback)>subscribe</a>(Array&lt;String&gt; topic, Array&lt;int&gt; qos, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Subscribes to multiple topics, each topic may include wildcards.</td>
                                        </tr>
                                        
                                        <tr id="i4" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#unSubscribe(String,IResultCallback)>unSubscribe</a>(String topic, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Requests the server unsubscribe the client from a topic.</td>
                                        </tr>
                                        
                                        <tr id="i5" class="rowColor">
                                            <td class="colFirst"><code>abstract IMqttDeliveryToken</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#publish(String,Array,IResultCallback)>publish</a>(String topic, Array&lt;byte&gt; data, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Publishes a message to a topic on the server.</td>
                                        </tr>
                                        
                                        <tr id="i6" class="altColor">
                                            <td class="colFirst"><code>abstract IMqttDeliveryToken</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#publish(String,Array,int,boolean,IResultCallback)>publish</a>(String topicId, Array&lt;byte&gt; data, int qos, boolean retained, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Publishes a message to a topic on the server.</td>
                                        </tr>
                                        
                                        <tr id="i7" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#publishDevice(MqttControlBuilder,IResultCallback)>publishDevice</a>(MqttControlBuilder builder, IResultCallback callback) </code>
                                            </th>
                                            <td class="colLast">Publish message to specified device to control it on mqtt server.</td>
                                        </tr>
                                        
                                        <tr id="i8" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#publishDevice(MqttControlBuilder,PublishAndDeliveryCallback,IResultCallback)>publishDevice</a>(MqttControlBuilder builder, PublishAndDeliveryCallback callback, IResultCallback resultCallback) </code>
                                            </th>
                                            <td class="colLast">Publish message to specified device to control it on mqtt server.</td>
                                        </tr>
                                        
                                        <tr id="i9" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#registerMqttCallback(IMqttServerStatusCallback)>registerMqttCallback</a>(IMqttServerStatusCallback callback) </code>
                                            </th>
                                            <td class="colLast">Register mqtt connect callback.</td>
                                        </tr>
                                        
                                        <tr id="i10" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#unRegisterMqttCallback(IMqttServerStatusCallback)>unRegisterMqttCallback</a>(IMqttServerStatusCallback callback) </code>
                                            </th>
                                            <td class="colLast">Unregister mqtt connect callback.</td>
                                        </tr>
                                        
                                        <tr id="i11" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#connect()>connect</a>() </code>
                                            </th>
                                            <td class="colLast">Connects to an MQTT server and init MQTT config.</td>
                                        </tr>
                                        
                                        <tr id="i12" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#close()>close</a>() </code>
                                            </th>
                                            <td class="colLast">Close the client.</td>
                                        </tr>
                                        
                                        <tr id="i13" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#justConnect()>justConnect</a>() </code>
                                            </th>
                                            <td class="colLast">Just connects to an MQTT server.</td>
                                        </tr>
                                        
                                        <tr id="i14" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#justClose()>justClose</a>() </code>
                                            </th>
                                            <td class="colLast">Just close connection, not releases all resource.</td>
                                        </tr>
                                        
                                        <tr id="i15" class="rowColor">
                                            <td class="colFirst"><code>abstract boolean</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#isRealConnect()>isRealConnect</a>() </code>
                                            </th>
                                            <td class="colLast">Determines if this client is currently connected to the server.</td>
                                        </tr>
                                        
                                        <tr id="i16" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#registerMqttMessageParserListener(MqttMessageRespParseListener)>registerMqttMessageParserListener</a>(MqttMessageRespParseListener listener) </code>
                                            </th>
                                            <td class="colLast">Register mqtt message listener, callback message of specify topic.</td>
                                        </tr>
                                        
                                        <tr id="i17" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#unRegisterMqttMessageParserListener(MqttMessageRespParseListener)>unRegisterMqttMessageParserListener</a>(MqttMessageRespParseListener listener) </code>
                                            </th>
                                            <td class="colLast">Unregister mqtt message listener, callback message of specify topic.</td>
                                        </tr>
                                        
                                        <tr id="i18" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#registerMqttFlowRespParseListener(MqttFlowRespParseListener)>registerMqttFlowRespParseListener</a>(MqttFlowRespParseListener listener) </code>
                                            </th>
                                            <td class="colLast">Register flow response listener, just for sweeper device.</td>
                                        </tr>
                                        
                                        <tr id="i19" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#unRegisterMqttFlowRespParseListener(MqttFlowRespParseListener)>unRegisterMqttFlowRespParseListener</a>(MqttFlowRespParseListener listener) </code>
                                            </th>
                                            <td class="colLast">Unregister flow response listener, just for sweeper device.</td>
                                        </tr>
                                        
                                        <tr id="i20" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#rawConnect()>rawConnect</a>() </code>
                                            </th>
                                            <td class="colLast">Connects to an MQTT server , direct connect.</td>
                                        </tr>
                                        
                                        <tr id="i21" class="rowColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#setMqttConfigTransfer(IThingGetBaseConfig)>setMqttConfigTransfer</a>(IThingGetBaseConfig iThingMQTTConfig) </code>
                                            </th>
                                            <td class="colLast">MQTT connect config</td>
                                        </tr>
                                        
                                        <tr id="i22" class="altColor">
                                            <td class="colFirst"><code>abstract void</code>
                                            </td>
                                            <th class="colSecond" scope="row"><code><a href=IMqttServer.html#publishLinkWithTopic(MqttControlBuilder,IResultCallback)>publishLinkWithTopic</a>(MqttControlBuilder builder, IResultCallback resultCallback) </code>
                                            </th>
                                            <td class="colLast">Publish message to specified device to control it on mqtt server.</td>
                                        </tr>
                                        
                                        </tbody>
                                    </table>
                                </div>
                                <ul class="blockList">
                                
                                    <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
                                        <!--   -->
                                    </a>
                                        <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
                                        <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString,
                                            wait, wait, wait</code></li>
                                </ul>
                            </li>
                        </ul>
                    </section>
                    
                </li>
            </ul>
        </div>
        <div class="details">
            <ul class="blockList">
                <li class="blockList">
                    <!-- ========= CONSTRUCTOR DETAIL ======== -->
                    
                    <!-- ============ METHOD DETAIL ========== -->
                    
                    <section role="region">
                        <ul class="blockList">
                            <li class="blockList"><a id="method.detail">
                                <!--   -->
                            </a>
                                <h3>Method Detail</h3>
                                
                                <a id="subscribe(String,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>subscribe</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#subscribe(String,IResultCallback)>subscribe</a>(String topic, IResultCallback callback)</pre>
                                        <div class="block"><p>Subscribe to a topic.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>topic</code> - the topic to subscribe to, which can include wildcards.</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - optional listener that will be notified when subscribe hascompleted</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="subscribe(String,int,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>subscribe</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#subscribe(String,int,IResultCallback)>subscribe</a>(String topic, int qos, IResultCallback callback)</pre>
                                        <div class="block"><p>Subscribe to a topic with qos.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>topic</code> - the topic to subscribe to, which can include wildcards.</dd>
                                            
                                            
                                            
                                            <dd><code>qos</code> - the maximum quality of service at which to subscribe.</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - optional listener that will be notified when subscribe hascompleted</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="subscribe(Array,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>subscribe</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#subscribe(Array,IResultCallback)>subscribe</a>(Array&lt;String&gt; topicIds, IResultCallback callback)</pre>
                                        <div class="block"><p>Subscribe topics to MQTT server.</p><p>If you need to register a listener, please see <a href=IMqttServer.html#registerMqttMessageParserListener(MqttMessageRespParseListener)>registerMqttMessageParserListener</a></p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>topicIds</code> - Topic ids which you want to subscribe.</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - Callback whether the subscription is successful</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="subscribe(Array,Array,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>subscribe</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#subscribe(Array,Array,IResultCallback)>subscribe</a>(Array&lt;String&gt; topic, Array&lt;int&gt; qos, IResultCallback callback)</pre>
                                        <div class="block"><p>Subscribes to multiple topics, each topic may include wildcards.</p><p>Provides an optimized way to subscribe to multiple topics compared tosubscribing to each one individually.</p><p>The <a href=IMqttServer.html#registerMqttMessageParserListener(MqttMessageRespParseListener)>registerMqttMessageParserListener</a> method should be called beforethis method, otherwise any received messages will be discarded.</p><p>If (@link MqttConnectOptions#setCleanSession(boolean)} was set to true,when connecting to the server, the subscription remains in place untileither:</p><ul><li>The client disconnects</li><li>An unsubscribe method is called to unsubscribe the topic</li></ul><p>If (@link MqttConnectOptions#setCleanSession(boolean)} was set to false,when connecting to the server, the subscription remains in placeuntil either:</p><ul><li>An unsubscribe method is called to unsubscribe the topic</li><li>The next time the client connects with cleanSession set to true</li></ul><p>With cleanSession set to false the MQTT server will store messageson behalf of the client when the client is not connected. The next timethe client connects with the same client ID the server willdeliver the stored messages to the client.</p><p>The "topic filter" string is used when subscription may contain specialcharacters, which allows you to subscribe to multiple topics at once.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>topic</code> - one or more topics to subscribe to, which can includewildcards</dd>
                                            
                                            
                                            
                                            <dd><code>qos</code> - the maximum quality of service to subscribe each topicat.Messages published at a lower quality of service will bereceived at the published QoS.</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - optional listener that will be notified when subscribe hascompleted</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="unSubscribe(String,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>unSubscribe</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#unSubscribe(String,IResultCallback)>unSubscribe</a>(String topic, IResultCallback callback)</pre>
                                        <div class="block"><p>Requests the server unsubscribe the client from a topic.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>topic</code> - the topic to unsubscribe from.</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - optional listener that will be notified when unsubscribe hascompleted</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="publish(String,Array,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>publish</h4>
                                        <pre class="methodSignature"> abstract IMqttDeliveryToken <a href=IMqttServer.html#publish(String,Array,IResultCallback)>publish</a>(String topic, Array&lt;byte&gt; data, IResultCallback callback)</pre>
                                        <div class="block"><p>Publishes a message to a topic on the server.</p><p>Once this method has returned cleanly, the message has been accepted forpublication by the client and will be delivered on a background thread.In the event the connection fails or the client stops, Messages will bedelivered to the requested quality of service once the connection isre-established to the server on condition that:</p><ul><li>The connection is re-established with the same clientID</li><li>The original connection was made with (@linkMqttConnectOptions#setCleanSession(boolean)} set to false</li><li>The connection is re-established with (@linkMqttConnectOptions#setCleanSession(boolean)} set to false</li><li>Depending when the failure occurs QoS 0 messages may not bedelivered.</li></ul><p>When building an application, the design of the topic tree should takeinto account the following principles of topic name syntax and semantics:</p><ul><li>A topic must be at least one character long.</li><li>Topic names are case sensitive. For example, ACCOUNTS andAccounts are two different topics.</li><li>Topic names can include the space character. For example,Accountspayable is a valid topic.</li><li>A leading "/" creates a distinct topic. For example,/finance is different from finance. /financematches "+/+" and "/+", but not "+".</li><li>Do not include the null character (Unicode \x0000) in any topic.</li></ul><p>The following principles apply to the construction and content of a topictree:</p><ul><li>The length is limited to 64k but within that there are no limits tothe number of levels in a topic tree.</li><li>There can be any number of root nodes; that is, there can be anynumber of topic trees.</li></ul></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>topic</code> - to deliver the message to, for example "finance/stock/ibm".</dd>
                                            
                                            
                                            
                                            <dd><code>data</code> - to deliver to the server</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - optional listener that will be notified when message deliveryhas completed to the requested quality of service</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="publish(String,Array,int,boolean,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>publish</h4>
                                        <pre class="methodSignature"> abstract IMqttDeliveryToken <a href=IMqttServer.html#publish(String,Array,int,boolean,IResultCallback)>publish</a>(String topicId, Array&lt;byte&gt; data, int qos, boolean retained, IResultCallback callback)</pre>
                                        <div class="block"><p>Publishes a message to a topic on the server.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>topicId</code> - to deliver the message to, for example "finance/stock/ibm".</dd>
                                            
                                            
                                            
                                            <dd><code>data</code> - to deliver to the server</dd>
                                            
                                            
                                            
                                            <dd><code>qos</code> - the Quality of Service to deliver the message at.</dd>
                                            
                                            
                                            
                                            <dd><code>retained</code> - whether or not this message should be retained by the server.</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - optional listener that will be notified when message deliveryhas completed to the requested quality of service</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="publishDevice(MqttControlBuilder,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>publishDevice</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#publishDevice(MqttControlBuilder,IResultCallback)>publishDevice</a>(MqttControlBuilder builder, IResultCallback callback)</pre>
                                        <div class="block"><p>Publish message to specified device to control it on mqtt server.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>builder</code> - MqttControlBuilder Control device message builder</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - Listener that will be notified when message deliveryhas completed to the requested quality of service</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="publishDevice(MqttControlBuilder,PublishAndDeliveryCallback,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>publishDevice</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#publishDevice(MqttControlBuilder,PublishAndDeliveryCallback,IResultCallback)>publishDevice</a>(MqttControlBuilder builder, PublishAndDeliveryCallback callback, IResultCallback resultCallback)</pre>
                                        <div class="block"><p>Publish message to specified device to control it on mqtt server.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>builder</code> - MqttControlBuilder Control device message builder</dd>
                                            
                                            
                                            
                                            <dd><code>callback</code> - PublishAndDeliveryCallback Listener that will be notified when message deliveryhas completed to the requested quality of service</dd>
                                            
                                            
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="registerMqttCallback(IMqttServerStatusCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>registerMqttCallback</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#registerMqttCallback(IMqttServerStatusCallback)>registerMqttCallback</a>(IMqttServerStatusCallback callback)</pre>
                                        <div class="block"><p>Register mqtt connect callback.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>callback</code> - mqtt connect callback.</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="unRegisterMqttCallback(IMqttServerStatusCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>unRegisterMqttCallback</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#unRegisterMqttCallback(IMqttServerStatusCallback)>unRegisterMqttCallback</a>(IMqttServerStatusCallback callback)</pre>
                                        <div class="block"><p>Unregister mqtt connect callback.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>callback</code> - mqtt connect callback.</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="connect()">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>connect</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#connect()>connect</a>()</pre>
                                        <div class="block"><p>Connects to an MQTT server and init MQTT config.</p><p>It is recommended to call <a href=IMqttServer.html#registerMqttCallback(IMqttServerStatusCallback)>registerMqttCallback</a> prior toconnecting in order that messages destined for the client can be acceptedas soon as the client is connected.</p></div>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="close()">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>close</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#close()>close</a>()</pre>
                                        <div class="block"><p>Close the client. Releases all resource associated with the client. Afterthe client has been closed it cannot be reused. For instance attempts toconnect will fail.</p></div>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="justConnect()">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>justConnect</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#justConnect()>justConnect</a>()</pre>
                                        <div class="block"><p>Just connects to an MQTT server. <a href=IMqttServer.html#connect()>connect</a> also initialize the configuration.</p><p>Only call the <a href=IMqttServer.html#justClose()>justClose</a> method can call this method.</p><p>It is recommended to call <a href=IMqttServer.html#registerMqttCallback(IMqttServerStatusCallback)>registerMqttCallback</a> prior toconnecting in order that messages destined for the client can be acceptedas soon as the client is connected.</p></div>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="justClose()">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>justClose</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#justClose()>justClose</a>()</pre>
                                        <div class="block"><p>Just close connection, not releases all resource.If you need to reconnect, just call <a href=IMqttServer.html#justConnect()>justConnect</a></p></div>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="isRealConnect()">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>isRealConnect</h4>
                                        <pre class="methodSignature"> abstract boolean <a href=IMqttServer.html#isRealConnect()>isRealConnect</a>()</pre>
                                        <div class="block"><p>Determines if this client is currently connected to the server.</p></div>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="registerMqttMessageParserListener(MqttMessageRespParseListener)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>registerMqttMessageParserListener</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#registerMqttMessageParserListener(MqttMessageRespParseListener)>registerMqttMessageParserListener</a>(MqttMessageRespParseListener listener)</pre>
                                        <div class="block"><p>Register mqtt message listener, callback message of specify topic.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>listener</code> - MqttMessageRespParseListener</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="unRegisterMqttMessageParserListener(MqttMessageRespParseListener)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>unRegisterMqttMessageParserListener</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#unRegisterMqttMessageParserListener(MqttMessageRespParseListener)>unRegisterMqttMessageParserListener</a>(MqttMessageRespParseListener listener)</pre>
                                        <div class="block"><p>Unregister mqtt message listener, callback message of specify topic.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>listener</code> - MqttMessageRespParseListener</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="registerMqttFlowRespParseListener(MqttFlowRespParseListener)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>registerMqttFlowRespParseListener</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#registerMqttFlowRespParseListener(MqttFlowRespParseListener)>registerMqttFlowRespParseListener</a>(MqttFlowRespParseListener listener)</pre>
                                        <div class="block"><p>Register flow response listener, just for sweeper device.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>listener</code> - MqttFlowRespParseListener</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="unRegisterMqttFlowRespParseListener(MqttFlowRespParseListener)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>unRegisterMqttFlowRespParseListener</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#unRegisterMqttFlowRespParseListener(MqttFlowRespParseListener)>unRegisterMqttFlowRespParseListener</a>(MqttFlowRespParseListener listener)</pre>
                                        <div class="block"><p>Unregister flow response listener, just for sweeper device.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>listener</code> - MqttFlowRespParseListener</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="rawConnect()">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>rawConnect</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#rawConnect()>rawConnect</a>()</pre>
                                        <div class="block"><p>Connects to an MQTT server , direct connect.</p></div>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="setMqttConfigTransfer(IThingGetBaseConfig)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockList"
                                          >
                                    <li class="blockList">
                                        <h4>setMqttConfigTransfer</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#setMqttConfigTransfer(IThingGetBaseConfig)>setMqttConfigTransfer</a>(IThingGetBaseConfig iThingMQTTConfig)</pre>
                                        <div class="block"><p>MQTT connect config</p></div>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                                <a id="publishLinkWithTopic(MqttControlBuilder,IResultCallback)">
                                    <!--   -->
                                </a>
                                <ul class=
                                              "blockListLast"
                                          >
                                    <li class="blockList">
                                        <h4>publishLinkWithTopic</h4>
                                        <pre class="methodSignature"> abstract void <a href=IMqttServer.html#publishLinkWithTopic(MqttControlBuilder,IResultCallback)>publishLinkWithTopic</a>(MqttControlBuilder builder, IResultCallback resultCallback)</pre>
                                        <div class="block"><p>Publish message to specified device to control it on mqtt server.</p></div>
                                        
                                        <dl>
                                            <dt><span class="paramLabel">Parameters:</span></dt>
                                            
                                            
                                            <dd><code>builder</code> - MqttControlBuilder Control device message builder</dd>
                                            
                                            
                                            
                                            <dd><code>resultCallback</code> - IResultCallback Listener that has completed to the requested quality of service</dd>
                                            
                                            
                                        </dl>
                                        
                                        <!-- TODO missing return annotation -->
                                    </li>
                                </ul>
                                
                            </li>
                        </ul>
                    </section>
                    
                </li>
            </ul>
        </div>
    </div>
</main>
<footer role="contentinfo">
    <nav role="navigation">
        <!-- ======= START OF BOTTOM NAVBAR ====== -->
        <div class="bottomNav"><a id="navbar.bottom">
            <!--   -->
        </a>
            <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a>
            </div>
            <a id="navbar.bottom.firstrow">
                <!--   -->
            </a>
            <ul class="navList" title="Navigation">
    <li><a href="../../../../../index.html">Overview</a></li>
    
    <li><a href="package-summary.html">Package</a></li>
    
    <li>Class</li>
    
    <li><a href="package-tree.html">Tree</a></li>
    
    <li><a href="../../../../../deprecated.html">Deprecated</a></li>
    <li><a href="../../../../../index-files/index-1.html">Index</a></li>
    <li>Help</li>
</ul></div>
        <a id="skip.navbar.bottom">
            <!--   -->
        </a>
        <div class="subNav">
<ul class="navList" id="allclasses_navbar_top" style="display: block;">
    <li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.top">
<!--   -->
</a></div><!-- ======== END OF BOTTOM NAVBAR ======= -->
    </nav>
</footer><ul class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" id="ui-id-1" tabindex="0"
    style="display: none;"></ul>
<span role="status" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"></span>
</body>
</html>
